package com.ve;
import com.cloudgarden.layout.AnchorLayout;

import java.awt.BorderLayout;
import java.awt.Frame;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VistaPrincipal extends javax.swing.JFrame {
	private JPanel panPrincipal;
	private JButton btnRegCuota;
	private JButton btnSalir;
	private JButton btnEstadoCuenta;
	private JButton btnMostarCuota;
	private JPanel panBotones;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				VistaPrincipal inst = new VistaPrincipal();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	/*frameVistaGeneralGasto vista = new frameVistaGeneralGasto();
	vista.setVisible(true);;*/
	
	
	}
	
	public VistaPrincipal() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.setExtendedState(Frame.MAXIMIZED_BOTH);
			{
				panPrincipal = new JPanel();
				getContentPane().add(panPrincipal, BorderLayout.NORTH);
				//panPrincipal.setLayout(panPrincipalLayout);
				panPrincipal.setPreferredSize(new java.awt.Dimension(629, 367));
				panPrincipal.setLayout(null);
				panPrincipal.setBackground(new java.awt.Color(112,61,169));
				{
					panBotones = new JPanel();
					panPrincipal.add(panBotones);
					//panBotones.setLayout(panBotonesLayout=);
					panBotones.setBounds(0, 265, 632, 96);
					panBotones.setLayout(null);
					{
						btnEstadoCuenta = new JButton();
						panBotones.add(btnEstadoCuenta);
						btnEstadoCuenta.setText("Mostrar Estado de Cuenta");
						btnEstadoCuenta.setBounds(314, 18, 146, 56);
					}
					{
						btnRegCuota = new JButton();
						panBotones.add(btnRegCuota);
						btnRegCuota.setText("Registra Cuota Vencida");
						btnRegCuota.setBounds(12, 18, 146, 56);
					}
					{
						btnMostarCuota = new JButton();
						panBotones.add(btnMostarCuota);
						btnMostarCuota.setText("Mostar Cuota Mensual");
						btnMostarCuota.setBounds(163, 18, 146, 56);
					}
					{
						btnSalir = new JButton();
						panBotones.add(btnSalir);
						btnSalir.setText("Salir");
						btnSalir.setBounds(465, 18, 146, 56);
						btnSalir.addMouseListener(new MouseAdapter() {
							public void mouseClicked(MouseEvent evt) {
								btnSalirMouseClicked(evt);
							}
						});
					}
				}
			}
			pack();
			this.setSize(645, 407);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	
	private void btnSalirMouseClicked(MouseEvent evt) {
		System.exit(0);
	}
}